package com.aaa.service.back.Impl;

import com.aaa.entity.Goods;
import com.aaa.mapper.back.GoodsMapper;
import com.aaa.service.back.GoodsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class GoodsServiceImpl implements GoodsService {

    @Resource
    private GoodsMapper goodsMapper;

    @Override
    public List<Map<String, Object>> findGoods() {
        return goodsMapper.findGoods();
    }

    @Override
    public List<Map<String, Object>> findCategory() {
        return goodsMapper.findCategory();
    }

    @Override
    public List<Map<String, Object>> findGoodsSize() {
        return goodsMapper.findGoodsSize();
    }

    @Override
    public Goods findGoodsByGoodsId(Integer gId) {
        return goodsMapper.findGoodsByGoodsId(gId);
    }

    @Override
    public int addGoods(Goods goods) {
        return goodsMapper.addGoods(goods);
    }

    @Override
    public int editGoods0(Goods goods) {
        return goodsMapper.editGoods0(goods);
    }

    @Override
    public int editGoods1(Goods goods) {
        return goodsMapper.editGoods1(goods);
    }
}
